package com.dpwx.module.startup;

import android.content.Intent;

import com.dpwx.framework.mvc.BaseActivity;
import com.dpwx.framework.mvc.BaseFacade;
import com.dpwx.module.startup.controller.StartupCommand;

public class StartupFacade extends BaseFacade {
	
	public static final String NAME = StartupFacade.class.getName();
	
	public static final String CMD_STARTUP = "startup";
	public static final String CMD_SHOW_SPLASH = "show_splash";
	public static final String CMD_SHOW_LOGIN = "show_login";
	
	public static final String MEDIATOR_SPLASH = "splash_mediator";
	public static final String MEDIATOR_LOGIN = "login_mediator";
	
	public static final String STARTUP_PROXY = "startup_proxy";
	
	public StartupFacade(BaseActivity activity) {
		super(NAME, activity);
	}
	
	@Override
	protected void initializeController() {
		// TODO Auto-generated method stub
		super.initializeController();
		registerCommand(CMD_STARTUP, new StartupCommand());
	}

	@Override
	public void startup(Intent intent) {
		sendNotification(CMD_STARTUP);
	}

}
